package com.example.dto;

public class LoginResult {
    private int code; // 0: 用户不存在, 1: 密码错误, 2: 登录成功
    private String message;
    private Object data;

    public LoginResult(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    // Getters 和 Setters
    public int getCode() { return code; }
    public void setCode(int code) { this.code = code; }

    public String getMessage() { return message; }
    public void setMessage(String message) { this.message = message; }

    public Object getData() { return data; }
    public void setData(Object data) { this.data = data; }
}